/*


Paper Tables
	Makes the tables for the Making the Grade paper


*/

set trace on


*set directories here
global dir C:/Final Paper Tables
global code_dir ${dir}/do
global dta_dir ${dir}/dta



*install programs we rely on
ssc install labutil, replace
ssc install reghdfe, replace
reghdfe, compile
ssc install ritest, replace
ssc install lassopack, replace
ssc install krls, replace
ssc install qqvalue, replace
net from http://www.stata-journal.com/software/sj15-4
net install dm89_2, replace

*Pupil Data Tables
do "${code_dir}/1_Pupil_Data_Analysis.do"
#delimit cr


*Classroom Obs Tables
do "${code_dir}/2_Classroom_Obs_Analysis.do"
#delimit cr



*q-values for the previous 2 sets of tables
	*must run above code first
	*also need to make sure they all run on the same day, or manually change the date var in this code
do "${code_dir}/3_Compute_q_values.do"
#delimit cr



*Balance and Attrition
do "${code_dir}/4_Student_Balance_and_Attrition.do"
#delimit cr

*Mediation analysis
do "${code_dir}/5_Mediation_Analysis.do"
#delimit cr



*Machine Learning
do "${code_dir}/6_Machine_Learning.do"
#delimit cr

*Arancibia et al. data analysis
do "${code_dir}/7_Arancibia_Analysis.do"
#delimit cr


